/**
 * RegistrationWindowSingleton.java
 * 
 * @author Beatrice Bacelli
 * @author Luca Bedogni
 * @author Silvia Righini
 */
package unibo.lsb.graphic;

/**
 * Singleton for {@link RegistrationWindow}
 */
public class RegistrationWindowSingleton {

	private static RegistrationWindowSingleton rws;
	private static RegistrationWindow registrationWindow;

	private RegistrationWindowSingleton() {
		registrationWindow = new RegistrationWindow();
	}

	public static RegistrationWindow getRegistrationWindow() {
		return registrationWindow;
	}

	public static RegistrationWindowSingleton getInstance() {
		if (rws == null) {
			rws = new RegistrationWindowSingleton();
		}
		return rws;
	}

}
